import request from '../../axios/request.js';
let service = request.service;
let formatterUrl = request.formatterUrl;
export default{
  queryBloodvessel(bodyCheckId) {
    return service({
      url: `/adscm/application/bodyCheckOther/queryBloodvessel/${bodyCheckId}`, //查询精神&压力数据
      method: 'get',
    })
  },
  queryBloodvesselList(providerId) {
    return service({
      url: `/adscm/application/bodyCheckOther/queryBloodvesselList/${providerId}`, //查询精神&压力数据历史数据
      method: 'get',
    })
  },
  queryHistoryVitalSigns(providerId) {
    return service({
      url: `/adscm/application/bodyCheck/queryHistorySmtz/${providerId}`, //查询历史体征数据
      method: 'get',
    })
  },
  queryVitalSigns(bodyRecodeId) {
    return service({
      url: `/adscm/application/bodyCheck/selectByBodyRecodeId/${bodyRecodeId}`, //获取体检记录列表
      method: 'get',
    })
  },
  queryOtherChecks(type,idCard) {
    return service({
      url: `/adscm/application/hTreatment/queryOtherChecks/${type}/${idCard}`, //查询院外新增数据
      method: 'get',
    })
  }, 
  queryInnerBloodHistoryByHid(hid) {
    return service({
      url: `/adscm/application/bloodAssay/selectHistoryByHid/${hid}`, //查询院内血液检测数据
      method: 'get',
    })
  }, 
  queryInnerBloodByHid(hid) {
    return service({
      url: `/adscm/application/bloodAssay/selectByHid/${hid}`, //查询院内血液检测单条数据
      method: 'get',
    })
  },
  queryOtherChecksDetail(type,id) {
    /**查询院外检查图片信息 */
    return service({
      url: `/adscm/application/hTreatment/queryOtherChecksDetail/${type}/${id}`,
      method: 'post',
    })
  },
  insertHOtherCheck(type,idCard){
    /**新增外院检测数据*/
    return service({
      url: `/adscm/application/hTreatment/insertHOtherCheck/${type}/${idCard}`,
      method: 'post',
    })
  },
  insertAndUpdateHistory(data) {
    return service({
      url: `/adscm/application/hTreatment/updateOtherMedicalRecord`,
      /**insert-新增 update-编辑 码表参数 */
      method: 'post',
      data
      })
  },
  insertAndUpdateBlood(data) {
    return service({
      url: `/adscm/application/hTreatment/updateOtherBloodTest`,
      /**insert-新增 update-编辑 码表参数 */
      method: 'post',
      data
      })
  }, 
  insertInnerBlood(data) {
    return service({
      url: `/adscm/application/bloodAssay/insert`,
      method: 'post',
      data
      })
  },
  updateInnerBlood(data) {
    return service({
      url: `/adscm/application/bloodAssay/update`,
      method: 'post',
      data
      })
  },
  insertAndUpdateCt(data) {
    return service({
      url: `/adscm/application/hTreatment/updateOtherCT`,
      /**insert-新增 update-编辑 码表参数 */
      method: 'post',
      data
      })
  }, 
  insertAndUpdateMt(data) {
    return service({
      url: `/adscm/application/hTreatment/updateHOtherUltrasonography`,
      /**insert-新增 update-编辑 码表参数 */
      method: 'post',
      data
      })
  },  
  insertAndUpdateOts(data) {
    return service({
      url: `/adscm/application/hTreatment/updateHOtherOthercheck`,
      /**insert-新增 update-编辑 码表参数 */
      method: 'post',
      data
      })
  },
  insertMicrocirculation(data){
    /**新增微循环*/
    return service({
      url: `/adscm/application/bodyCheckOther/insert`,
      method: 'post',
      data
    })
  },
  addUpdataCheckBodyInfo(data) {
    /**addUpdataCheckBodyInfo-编辑 体检报告*/
    return service({
      url: `/adscm/application/bodyCheck/update`,
      method: 'post',
      data
    })
  },
  idTypeImgUpload(id, type) {
    /**院外病例上传  type =1|2 身份证：正/反*/
    return formatterUrl({
      url: `/adscm/application/hTreatment/uploadCheckImage/${id}/${type}`
    })
  },
  idImgUploadForStress(id) {
    /**精神&压力测试图片上传*/
    return formatterUrl({
      url: `/adscm/application/bodyCheckOther/uploadCheckImage/${id}`
    })
  },
}